package cn.sofwin.sb;

import cn.sofwin.sb.controller.UserController;
import cn.sofwin.sb.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("cn.sofwin.sb")   //开启组件扫描的注解
public class AppConfig {

    @Autowired
    private UserController userController;

    /*@Bean
    public User zs(){
        User user = new User();
        user.setId(2);
        user.setUsername("zhangsan");
        user.setPassword("888");
        user.setNickname("张三");
        return  user;

    }*/

}
